import { Component, OnInit, Input } from '@angular/core';

@Component({
  selector: 'app-stars',
  templateUrl: './stars.component.html',
  styleUrls: ['./stars.component.css']
})
export class StarsComponent implements OnInit {
  @Input()
  prodStars: number = 0;
  //stars: Array<boolean> = new Array<boolean>();
  stars: number[] = [];
  constructor() { }

  ngOnInit() {
    for (var i = 0; i < this.prodStars; i++) {
      this.stars.push(1)
    }
  }
}
